
/*
===============================================================================
                    EntitySpaces Studio by EntitySpaces, LLC
             Persistence Layer and Business Objects for Microsoft .NET
             EntitySpaces(TM) is a legal trademark of EntitySpaces, LLC
                          http://www.entityspaces.net
===============================================================================
EntitySpaces Version : 2012.1.0930.0
EntitySpaces Driver  : SQL
Date Generated       : 2016/10/12 23:59:34
===============================================================================
*/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
using System.Data;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;

using EntitySpaces.Core;
using EntitySpaces.Interfaces;
using EntitySpaces.DynamicQuery;



namespace yncTech.BusinessObjects
{
	/// <summary>
	/// Encapsulates the 'BF_CompanyDic' table
	/// </summary>

    [DebuggerDisplay("Data = {Debug}")]
	[Serializable]
	[DataContract]
	[KnownType(typeof(BFCompanyDic))]	
	[XmlType("BFCompanyDic")]
	public partial class BFCompanyDic : esBFCompanyDic
	{	
		[DebuggerBrowsable(DebuggerBrowsableState.RootHidden | DebuggerBrowsableState.Never)]
		protected override esEntityDebuggerView[] Debug
		{
			get { return base.Debug; }
		}

		override public esEntity CreateInstance()
		{
			return new BFCompanyDic();
		}
		
		#region Static Quick Access Methods
		static public void Delete(System.String companyCode, System.String companyName)
		{
			var obj = new BFCompanyDic();
			obj.CompanyCode = companyCode;
			obj.CompanyName = companyName;
			obj.AcceptChanges();
			obj.MarkAsDeleted();
			obj.Save();
		}

	    static public void Delete(System.String companyCode, System.String companyName, esSqlAccessType sqlAccessType)
		{
			var obj = new BFCompanyDic();
			obj.CompanyCode = companyCode;
			obj.CompanyName = companyName;
			obj.AcceptChanges();
			obj.MarkAsDeleted();
			obj.Save(sqlAccessType);
		}
		#endregion

		
					
		
	
	}



    [DebuggerDisplay("Count = {Count}")]
	[Serializable]
	[CollectionDataContract]
	[XmlType("BFCompanyDicCollection")]
	public partial class BFCompanyDicCollection : esBFCompanyDicCollection, IEnumerable<BFCompanyDic>
	{
		public BFCompanyDic FindByPrimaryKey(System.String companyCode, System.String companyName)
		{
			return this.SingleOrDefault(e => e.CompanyCode == companyCode && e.CompanyName == companyName);
		}

		
		
		#region WCF Service Class
		
		[DataContract]
		[KnownType(typeof(BFCompanyDic))]
		public class BFCompanyDicCollectionWCFPacket : esCollectionWCFPacket<BFCompanyDicCollection>
		{
			public static implicit operator BFCompanyDicCollection(BFCompanyDicCollectionWCFPacket packet)
			{
				return packet.Collection;
			}

			public static implicit operator BFCompanyDicCollectionWCFPacket(BFCompanyDicCollection collection)
			{
				return new BFCompanyDicCollectionWCFPacket() { Collection = collection };
			}
		}
		
		#endregion
		
				
	}



    [DebuggerDisplay("Query = {Parse()}")]
	[Serializable]	
	public partial class BFCompanyDicQuery : esBFCompanyDicQuery
	{
        public BFCompanyDicQuery() : this("BFCompanyDicQuery")
		{
		}
		public BFCompanyDicQuery(string joinAlias)
		{
			this.es.JoinAlias = joinAlias;
		}	

		override protected string GetQueryName()
		{
			return "BFCompanyDicQuery";
		}
		
					
	
		#region Explicit Casts
		
		public static explicit operator string(BFCompanyDicQuery query)
		{
			return BFCompanyDicQuery.SerializeHelper.ToXml(query);
		}

		public static explicit operator BFCompanyDicQuery(string query)
		{
			return (BFCompanyDicQuery)BFCompanyDicQuery.SerializeHelper.FromXml(query, typeof(BFCompanyDicQuery));
		}
		
		#endregion		
	}

	[DataContract]
	[Serializable]
	abstract public partial class esBFCompanyDic : esEntity
	{
		public esBFCompanyDic()
		{

		}
		
		#region LoadByPrimaryKey
		public virtual bool LoadByPrimaryKey(System.String companyCode, System.String companyName)
		{
			if(this.es.Connection.SqlAccessType == esSqlAccessType.DynamicSQL)
				return LoadByPrimaryKeyDynamic(companyCode, companyName);
			else
				return LoadByPrimaryKeyStoredProcedure(companyCode, companyName);
		}

		public virtual bool LoadByPrimaryKey(esSqlAccessType sqlAccessType, System.String companyCode, System.String companyName)
		{
			if (sqlAccessType == esSqlAccessType.DynamicSQL)
				return LoadByPrimaryKeyDynamic(companyCode, companyName);
			else
				return LoadByPrimaryKeyStoredProcedure(companyCode, companyName);
		}

		private bool LoadByPrimaryKeyDynamic(System.String companyCode, System.String companyName)
		{
			BFCompanyDicQuery query = new BFCompanyDicQuery();
			query.Where(query.CompanyCode == companyCode, query.CompanyName == companyName);
			return this.Load(query);
		}

		private bool LoadByPrimaryKeyStoredProcedure(System.String companyCode, System.String companyName)
		{
			esParameters parms = new esParameters();
			parms.Add("CompanyCode", companyCode);			parms.Add("CompanyName", companyName);
			return this.Load(esQueryType.StoredProcedure, this.es.spLoadByPrimaryKey, parms);
		}
		#endregion
		
		#region Properties
		
		
		
		/// <summary>
		/// Maps to BF_CompanyDic.CompanyCode
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.String CompanyCode
		{
			get
			{
				return base.GetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyCode);
			}
			
			set
			{
				if(base.SetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyCode, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CompanyCode);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.CompanyName
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.String CompanyName
		{
			get
			{
				return base.GetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyName);
			}
			
			set
			{
				if(base.SetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyName, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CompanyName);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.CompanyNo
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.String CompanyNo
		{
			get
			{
				return base.GetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyNo);
			}
			
			set
			{
				if(base.SetSystemString(BFCompanyDicMetadata.ColumnNames.CompanyNo, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CompanyNo);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.CreatedBy
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.String CreatedBy
		{
			get
			{
				return base.GetSystemString(BFCompanyDicMetadata.ColumnNames.CreatedBy);
			}
			
			set
			{
				if(base.SetSystemString(BFCompanyDicMetadata.ColumnNames.CreatedBy, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CreatedBy);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.CreatedDate
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.DateTime? CreatedDate
		{
			get
			{
				return base.GetSystemDateTime(BFCompanyDicMetadata.ColumnNames.CreatedDate);
			}
			
			set
			{
				if(base.SetSystemDateTime(BFCompanyDicMetadata.ColumnNames.CreatedDate, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CreatedDate);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.LastedUpdatedBy
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.String LastedUpdatedBy
		{
			get
			{
				return base.GetSystemString(BFCompanyDicMetadata.ColumnNames.LastedUpdatedBy);
			}
			
			set
			{
				if(base.SetSystemString(BFCompanyDicMetadata.ColumnNames.LastedUpdatedBy, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.LastedUpdatedBy);
				}
			}
		}		
		
		/// <summary>
		/// Maps to BF_CompanyDic.LastedUpdatedDate
		/// </summary>
		[DataMember(EmitDefaultValue=false)]
		virtual public System.DateTime? LastedUpdatedDate
		{
			get
			{
				return base.GetSystemDateTime(BFCompanyDicMetadata.ColumnNames.LastedUpdatedDate);
			}
			
			set
			{
				if(base.SetSystemDateTime(BFCompanyDicMetadata.ColumnNames.LastedUpdatedDate, value))
				{
					OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.LastedUpdatedDate);
				}
			}
		}		
		
		#endregion	

		#region .str() Properties
		
		public override void SetProperties(IDictionary values)
		{
			foreach (string propertyName in values.Keys)
			{
				this.SetProperty(propertyName, values[propertyName]);
			}
		}
		
		public override void SetProperty(string name, object value)
		{
			esColumnMetadata col = this.Meta.Columns.FindByPropertyName(name);
			if (col != null)
			{
				if(value == null || value is System.String)
				{				
					// Use the strongly typed property
					switch (name)
					{							
						case "CompanyCode": this.str().CompanyCode = (string)value; break;							
						case "CompanyName": this.str().CompanyName = (string)value; break;							
						case "CompanyNo": this.str().CompanyNo = (string)value; break;							
						case "CreatedBy": this.str().CreatedBy = (string)value; break;							
						case "CreatedDate": this.str().CreatedDate = (string)value; break;							
						case "LastedUpdatedBy": this.str().LastedUpdatedBy = (string)value; break;							
						case "LastedUpdatedDate": this.str().LastedUpdatedDate = (string)value; break;
					}
				}
				else
				{
					switch (name)
					{	
						case "CreatedDate":
						
							if (value == null || value is System.DateTime)
								this.CreatedDate = (System.DateTime?)value;
								OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.CreatedDate);
							break;
						
						case "LastedUpdatedDate":
						
							if (value == null || value is System.DateTime)
								this.LastedUpdatedDate = (System.DateTime?)value;
								OnPropertyChanged(BFCompanyDicMetadata.PropertyNames.LastedUpdatedDate);
							break;
					

						default:
							break;
					}
				}
			}
            else if (this.ContainsColumn(name))
            {
                this.SetColumn(name, value);
            }
			else
			{
				throw new Exception("SetProperty Error: '" + name + "' not found");
			}
		}		

		public esStrings str()
		{
			if (esstrings == null)
			{
				esstrings = new esStrings(this);
			}
			return esstrings;
		}

		sealed public class esStrings
		{
			public esStrings(esBFCompanyDic entity)
			{
				this.entity = entity;
			}
			
	
			public System.String CompanyCode
			{
				get
				{
					System.String data = entity.CompanyCode;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.CompanyCode = null;
					else entity.CompanyCode = Convert.ToString(value);
				}
			}
				
			public System.String CompanyName
			{
				get
				{
					System.String data = entity.CompanyName;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.CompanyName = null;
					else entity.CompanyName = Convert.ToString(value);
				}
			}
				
			public System.String CompanyNo
			{
				get
				{
					System.String data = entity.CompanyNo;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.CompanyNo = null;
					else entity.CompanyNo = Convert.ToString(value);
				}
			}
				
			public System.String CreatedBy
			{
				get
				{
					System.String data = entity.CreatedBy;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.CreatedBy = null;
					else entity.CreatedBy = Convert.ToString(value);
				}
			}
				
			public System.String CreatedDate
			{
				get
				{
					System.DateTime? data = entity.CreatedDate;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.CreatedDate = null;
					else entity.CreatedDate = Convert.ToDateTime(value);
				}
			}
				
			public System.String LastedUpdatedBy
			{
				get
				{
					System.String data = entity.LastedUpdatedBy;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.LastedUpdatedBy = null;
					else entity.LastedUpdatedBy = Convert.ToString(value);
				}
			}
				
			public System.String LastedUpdatedDate
			{
				get
				{
					System.DateTime? data = entity.LastedUpdatedDate;
					return (data == null) ? String.Empty : Convert.ToString(data);
				}

				set
				{
					if (value == null || value.Length == 0) entity.LastedUpdatedDate = null;
					else entity.LastedUpdatedDate = Convert.ToDateTime(value);
				}
			}
			

			private esBFCompanyDic entity;
		}
		
		[NonSerialized]
		private esStrings esstrings;		
		
		#endregion
		
		#region Housekeeping methods

		override protected IMetadata Meta
		{
			get
			{
				return BFCompanyDicMetadata.Meta();
			}
		}

		#endregion		
		
		#region Query Logic

		public BFCompanyDicQuery Query
		{
			get
			{
				if (this.query == null)
				{
					this.query = new BFCompanyDicQuery();
					InitQuery(this.query);
				}

				return this.query;
			}
		}

		public bool Load(BFCompanyDicQuery query)
		{
			this.query = query;
			InitQuery(this.query);
			return this.Query.Load();
		}
		
		protected void InitQuery(BFCompanyDicQuery query)
		{
			query.OnLoadDelegate = this.OnQueryLoaded;
			
			if (!query.es2.HasConnection)
			{
				query.es2.Connection = ((IEntity)this).Connection;
			}			
		}

		#endregion
		
        [IgnoreDataMember]
		private BFCompanyDicQuery query;		
	}



	[Serializable]
	abstract public partial class esBFCompanyDicCollection : esEntityCollection<BFCompanyDic>
	{
		#region Housekeeping methods
		override protected IMetadata Meta
		{
			get
			{
				return BFCompanyDicMetadata.Meta();
			}
		}

		protected override string GetCollectionName()
		{
			return "BFCompanyDicCollection";
		}

		#endregion		
		
		#region Query Logic

	#if (!WindowsCE)
		[BrowsableAttribute(false)]
	#endif
		public BFCompanyDicQuery Query
		{
			get
			{
				if (this.query == null)
				{
					this.query = new BFCompanyDicQuery();
					InitQuery(this.query);
				}

				return this.query;
			}
		}

		public bool Load(BFCompanyDicQuery query)
		{
			this.query = query;
			InitQuery(this.query);
			return Query.Load();
		}

		override protected esDynamicQuery GetDynamicQuery()
		{
			if (this.query == null)
			{
				this.query = new BFCompanyDicQuery();
				this.InitQuery(query);
			}
			return this.query;
		}

		protected void InitQuery(BFCompanyDicQuery query)
		{
			query.OnLoadDelegate = this.OnQueryLoaded;
			
			if (!query.es2.HasConnection)
			{
				query.es2.Connection = ((IEntityCollection)this).Connection;
			}			
		}

		protected override void HookupQuery(esDynamicQuery query)
		{
			this.InitQuery((BFCompanyDicQuery)query);
		}

		#endregion
		
		private BFCompanyDicQuery query;
	}



	[Serializable]
	abstract public partial class esBFCompanyDicQuery : esDynamicQuery
	{
		override protected IMetadata Meta
		{
			get
			{
				return BFCompanyDicMetadata.Meta();
			}
		}	
		
		#region QueryItemFromName
		
        protected override esQueryItem QueryItemFromName(string name)
        {
            switch (name)
            {
				case "CompanyCode": return this.CompanyCode;
				case "CompanyName": return this.CompanyName;
				case "CompanyNo": return this.CompanyNo;
				case "CreatedBy": return this.CreatedBy;
				case "CreatedDate": return this.CreatedDate;
				case "LastedUpdatedBy": return this.LastedUpdatedBy;
				case "LastedUpdatedDate": return this.LastedUpdatedDate;

                default: return null;
            }
        }		
		
		#endregion
		
		#region esQueryItems

		public esQueryItem CompanyCode
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.CompanyCode, esSystemType.String); }
		} 
		
		public esQueryItem CompanyName
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.CompanyName, esSystemType.String); }
		} 
		
		public esQueryItem CompanyNo
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.CompanyNo, esSystemType.String); }
		} 
		
		public esQueryItem CreatedBy
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.CreatedBy, esSystemType.String); }
		} 
		
		public esQueryItem CreatedDate
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.CreatedDate, esSystemType.DateTime); }
		} 
		
		public esQueryItem LastedUpdatedBy
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.LastedUpdatedBy, esSystemType.String); }
		} 
		
		public esQueryItem LastedUpdatedDate
		{
			get { return new esQueryItem(this, BFCompanyDicMetadata.ColumnNames.LastedUpdatedDate, esSystemType.DateTime); }
		} 
		
		#endregion
		
	}


	
	public partial class BFCompanyDic : esBFCompanyDic
	{

		
		
	}
	



	[Serializable]
	public partial class BFCompanyDicMetadata : esMetadata, IMetadata
	{
		#region Protected Constructor
		protected BFCompanyDicMetadata()
		{
			m_columns = new esColumnMetadataCollection();
			esColumnMetadata c;

			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.CompanyCode, 0, typeof(System.String), esSystemType.String);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.CompanyCode;
			c.IsInPrimaryKey = true;
			c.CharacterMaxLength = 20;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.CompanyName, 1, typeof(System.String), esSystemType.String);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.CompanyName;
			c.IsInPrimaryKey = true;
			c.CharacterMaxLength = 50;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.CompanyNo, 2, typeof(System.String), esSystemType.String);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.CompanyNo;
			c.CharacterMaxLength = 50;
			c.IsNullable = true;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.CreatedBy, 3, typeof(System.String), esSystemType.String);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.CreatedBy;
			c.CharacterMaxLength = 50;
			c.IsNullable = true;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.CreatedDate, 4, typeof(System.DateTime), esSystemType.DateTime);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.CreatedDate;
			c.HasDefault = true;
			c.Default = @"(getdate())";
			c.IsNullable = true;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.LastedUpdatedBy, 5, typeof(System.String), esSystemType.String);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.LastedUpdatedBy;
			c.CharacterMaxLength = 50;
			c.IsNullable = true;
			m_columns.Add(c);
				
			c = new esColumnMetadata(BFCompanyDicMetadata.ColumnNames.LastedUpdatedDate, 6, typeof(System.DateTime), esSystemType.DateTime);
			c.PropertyName = BFCompanyDicMetadata.PropertyNames.LastedUpdatedDate;
			c.HasDefault = true;
			c.Default = @"(getdate())";
			c.IsNullable = true;
			m_columns.Add(c);
				
		}
		#endregion	
	
		static public BFCompanyDicMetadata Meta()
		{
			return meta;
		}	
		
		public Guid DataID
		{
			get { return base.m_dataID; }
		}	
		
		public bool MultiProviderMode
		{
			get { return false; }
		}		

		public esColumnMetadataCollection Columns
		{
			get	{ return base.m_columns; }
		}
		
		#region ColumnNames
		public class ColumnNames
		{ 
			 public const string CompanyCode = "CompanyCode";
			 public const string CompanyName = "CompanyName";
			 public const string CompanyNo = "CompanyNo";
			 public const string CreatedBy = "CreatedBy";
			 public const string CreatedDate = "CreatedDate";
			 public const string LastedUpdatedBy = "LastedUpdatedBy";
			 public const string LastedUpdatedDate = "LastedUpdatedDate";
		}
		#endregion	
		
		#region PropertyNames
		public class PropertyNames
		{ 
			 public const string CompanyCode = "CompanyCode";
			 public const string CompanyName = "CompanyName";
			 public const string CompanyNo = "CompanyNo";
			 public const string CreatedBy = "CreatedBy";
			 public const string CreatedDate = "CreatedDate";
			 public const string LastedUpdatedBy = "LastedUpdatedBy";
			 public const string LastedUpdatedDate = "LastedUpdatedDate";
		}
		#endregion	

		public esProviderSpecificMetadata GetProviderMetadata(string mapName)
		{
			MapToMeta mapMethod = mapDelegates[mapName];

			if (mapMethod != null)
				return mapMethod(mapName);
			else
				return null;
		}
		
		#region MAP esDefault
		
		static private int RegisterDelegateesDefault()
		{
			// This is only executed once per the life of the application
			lock (typeof(BFCompanyDicMetadata))
			{
				if(BFCompanyDicMetadata.mapDelegates == null)
				{
					BFCompanyDicMetadata.mapDelegates = new Dictionary<string,MapToMeta>();
				}
				
				if (BFCompanyDicMetadata.meta == null)
				{
					BFCompanyDicMetadata.meta = new BFCompanyDicMetadata();
				}
				
				MapToMeta mapMethod = new MapToMeta(meta.esDefault);
				mapDelegates.Add("esDefault", mapMethod);
				mapMethod("esDefault");
			}
			return 0;
		}			

		private esProviderSpecificMetadata esDefault(string mapName)
		{
			if(!m_providerMetadataMaps.ContainsKey(mapName))
			{
				esProviderSpecificMetadata meta = new esProviderSpecificMetadata();			


				meta.AddTypeMap("CompanyCode", new esTypeMap("nvarchar", "System.String"));
				meta.AddTypeMap("CompanyName", new esTypeMap("nvarchar", "System.String"));
				meta.AddTypeMap("CompanyNo", new esTypeMap("nvarchar", "System.String"));
				meta.AddTypeMap("CreatedBy", new esTypeMap("varchar", "System.String"));
				meta.AddTypeMap("CreatedDate", new esTypeMap("datetime", "System.DateTime"));
				meta.AddTypeMap("LastedUpdatedBy", new esTypeMap("varchar", "System.String"));
				meta.AddTypeMap("LastedUpdatedDate", new esTypeMap("datetime", "System.DateTime"));			
				
				
				
				meta.Source = "BF_CompanyDic";
				meta.Destination = "BF_CompanyDic";
				
				meta.spInsert = "proc_BF_CompanyDicInsert";				
				meta.spUpdate = "proc_BF_CompanyDicUpdate";		
				meta.spDelete = "proc_BF_CompanyDicDelete";
				meta.spLoadAll = "proc_BF_CompanyDicLoadAll";
				meta.spLoadByPrimaryKey = "proc_BF_CompanyDicLoadByPrimaryKey";
				
				this.m_providerMetadataMaps["esDefault"] = meta;
			}
			
			return this.m_providerMetadataMaps["esDefault"];
		}

		#endregion

		static private BFCompanyDicMetadata meta;
		static protected Dictionary<string, MapToMeta> mapDelegates;
		static private int _esDefault = RegisterDelegateesDefault();
	}
}
